<div class="list">
	<table cellspacing="0" cellpadding="0">
		<tr class="th">
			<th>ID</th>	
			<th>从业时间</th>
			<th>设计擅长</th>
			<th>设计收费</th>	
			<th>操作</th>	
		</tr>
		<?php foreach($finds as $item):?>
		<tr class="bg">
			<td width="60"><?php echo $item['id'];?></td>
			<td align="left"><?php echo $item['time'];?></td>
			<td><?php echo $item['good'];?></td>
			<td align="left"><?php echo $item['moeny'];?></td>
			<td class="odd">
				<a href="<?php echo url('find/detail?id='.$item['id']);?>" >查看</a>&nbsp;&nbsp;|&nbsp;&nbsp;
				<a class='del' id="<?php echo $item['id'];?>" href='javascript:void(0);' >删除</a>
			</td>
		</tr>

		<?php endforeach;?>
		<tr>
			<td colspan="5" align="center"><?php echo $page;?></td>
		</tr>

	</table>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$(".bg:odd").css("background-color","#EDEDED");
	$(".del").click(function(){
		if(confirm("确认删除")){
			that = $(this);
			$.post("<?php echo url('find/del');?>",{id:that.attr('id')},function(data){
				if(data.s==1){
					that.parents('tr').remove();
				}else{
					alert(data.i);
				}
			});
		}
		return false;
		});	
});
</script>
